package com.woniu.userservice.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

@Data
public class Collections implements Serializable {

    private static final long serialVersionUID = 481660042066956057L;
    /**
    * 收藏id
    */    
    private Integer id;
    /**
    * 商品id
    */    
    private Integer goodsid;
    /**
    * 用户id
    */    
    private Integer userid;
    /**
    * 收藏时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date collectiontime;
    /**
     * 商品名字
     */
    private String goodsname;
    /**
     * 商品价格
     */
    private Double price;
}